package com.mayikt.days07;

/**
 * @ClassName Test006
 * @Author 蚂蚁课堂余胜军 QQ644064779 www.mayikt.com
 * @Version V1.0
 **/
public class Test006 {
    private static ThreadLocal threadLocal = new ThreadLocal<String>();

    public static void main(String[] args) {
        threadLocal.set("mayikt");
        threadLocal.remove();
        threadLocal = null;
        System.gc();

        Thread thread = Thread.currentThread();
        threadLocal.get();
    }
}
